{include file="public/header" /}
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.fuwu_personal_shiming}</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
    <form method="get" name="formSearch" id="formSearch">
        <div class="ds-search-form">
            <dl>
                <dt>{$Think.lang.fuwu_personal_search_phone}</dt>
                <dd><input class="txt" name="search_phone" id="search_phone" value="{$search_phone}" type="text"></dd>
                <dt>{$Think.lang.fuwu_personal_search_name}</dt>
                <dd><input class="txt" name="search_name" id="search_name" value="{$search_name}" type="text"></dd>
            </dl>
            <div class="btn_group">
                <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
                {if $search_phone != ''||$search_name!=''}
                <a class="btn" href="{:url('Fupersonalshiming/index')}" title="{$Think.lang.ds_cancel_search}"><span>{$Think.lang.ds_cancel_search}</span></a>
                {/if}
                <!--<a class="btn btn-default" href="javascript:export_xls('{:url('Brand/export_step1')}')"><span>{$Think.lang.ds_export}Excel</span></a>-->
            </div>
        </div>
    </form>
    <table class="ds-default-table">
            <thead>
            <tr class="thead">
                <!--<th class="w24"></th>-->
                <!--<th>{$Think.lang.fuwu_personal_code}</th>-->
                <!--<th>{$Think.lang.fuwu_personal_skillid}</th>-->
                <th class="w150">{$Think.lang.fuwu_personal_phone}</th>
                <th class="w150">{$Think.lang.fuwu_personal_name}</th>
                <th class="w150">{$Think.lang.fuwu_personal_idcard}</th>
                <th class="w150">{$Think.lang.fuwu_personal_cardImgZ}</th>
                <th class="w150">{$Think.lang.fuwu_personal_cardImgF}</th>
                <th class="w150">{$Think.lang.fuwu_personal_cardImgS}</th>
                {if $status != 3}
                <th class="w150">审核人</th>
                <th class="w150">审核时间</th>
                {/if}
                <!--<th class="w150">{$Think.lang.fuwu_personal_admin_name}</th>-->
                <!--<th class="w150">{$Think.lang.fuwu_personal_status}</th>-->
                <!--<th class="w150">{$Think.lang.fuwu_personal_createdtime}</th>-->
                <th class="w150">{$Think.lang.fuwu_personal_updatedtime}</th>
                <th class="w120 align-center">{$Think.lang.ds_handle}</th>
            </tr>
            </thead>
            <tbody>
            {notempty name="$data"}
            {foreach name="data" item="v"}
            <tr class="hover edit" id="ds_row_{$v.id}">
                <!--<td><input value="{$v.id}" class="checkitem" type="checkbox" name="del_brand_id[]"></td>-->
                <!--<td class="name">{$v.code}</td>-->
                <!--<td class="name">{$v.skillname}</td>-->
                <td class="name">{$v.phone}</td>
                <td class="name">{$v.name}</td>
                <td class="name">{$v.idcard}</td>
                <td class="name">
                    {if $v.cardImgZ}
                    {php}
                    if ((strpos($v['cardImgZ'],'https://') !== false) || (strpos($v['cardImgZ'],'http://') !== false)){
                    {/php}
                    <img src="{$v.cardImgZ}" width="70px"/>
                    {php}}else{{/php}
                    图片格式错误
                    {php}}{/php}
                    {else/}
                    未上传
                    {/if}
                </td>
                <td class="name">
                    {if $v.cardImgF}
                    {php}
                    if ((strpos($v['cardImgF'],'https://') !== false) || (strpos($v['cardImgF'],'http://') !== false)){
                    {/php}
                    <img src="{$v.cardImgF}" width="70px"/>
                    {php}}else{{/php}
                    图片格式错误
                    {php}}{/php}
                    {else/}
                    未上传{/if}
                </td>
                <td class="name">
                    {if $v.cardImgS}
                    {php}
                    if ((strpos($v['cardImgS'],'https://') !== false) || (strpos($v['cardImgS'],'http://') !== false)){
                    {/php}
                    <img src="{$v.cardImgS}" width="70px"/>
                    {php}}else{{/php}
                    图片格式错误
                    {php}}{/php}
                    {else/}
                    未上传
                    {/if}</td>
                {if $status != 3}
                <th class="w150">{$v.status_admin_name}</th>
                <th class="w150">{$v.status_at}</th>
                {/if}
                <td class="name">{$v.updated_at}</td>
                <td class="align-center">
                    {if $v.cardstatus == 3}
                    <a style="width:65px;"href="{:url('Fupersonalshiming/view',['id'=>$v.id])}" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_view}审核</a>
                    {else/}
                    <a style="width:65px;"href="{:url('Fupersonalshiming/view',['id'=>$v.id])}" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_view}</a>
                    {/if}
                    <!--<a href="javascript:dsLayerConfirm('{:url('Fupersonal/del',['id'=>$v.id])}','{$Think.lang.ds_ensure_del}',{$v.id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>-->
                </td>
            </tr>
           {/foreach}
           {else /}
            <tr class="no_data">
                <td colspan="10">{$Think.lang.ds_no_record}</td>
            </tr>
            {/notempty}
            </tbody>
            <tfoot>
                {notempty name="data"}
                <tr colspan="15" class="tfoot">
                    <!--<td><input type="checkbox" class="checkall" id="checkallBottom"></td>-->
                    <!--<td colspan="16">-->
                        <!--<label for="checkallBottom">{$Think.lang.ds_select_all}</label>-->
                        <!--&nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>-->
                    <!--</td>-->
                </tr>
                {/notempty}
            </tfoot>
        </table>
    {$showpage}
    <div class="clear"></div>
</div>
<script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
<script type="text/javascript">
    function submit_delete(ids_str){
        _uri = ADMINSITEURL+"/Fupersonal/del.html?id=" + ids_str;
        dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
    }
</script>
